﻿namespace ClassLibrary.BusinessLayer.BusinessObjects
{
    using System;

    [Serializable, ClassTable("Agent", true)]
    public class Agents : ParentTableClass
    {
        private string strAddress;
        private string strAgent;
        private string strChineseName;
        private string strContactPerson;
        private string strContactPerson2;
        private string strEmailAddress;
        private string strEmailAddress2;
        private string strFax;
        private string strFax2;
        private string strJobTitle;
        private string strMobilePhone;
        private string strMobilePhone2;
        private string strName;
        private string strPhone;
        private string strPhone2;
        private string strWebSite;

        [ClassProperty(false, true, false, false, false, "Agent", "@Agent", ClassPropertyAttribute.DBTypes.Varchar)]
        public string _Agent
        {
            get
            {
                return this.strAgent;
            }
            set
            {
                this.strAgent = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Address", "@Address", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Address
        {
            get
            {
                return this.strAddress;
            }
            set
            {
                this.strAddress = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "ChineseName", "@ChineseName", ClassPropertyAttribute.DBTypes.Varchar)]
        public string ChineseName
        {
            get
            {
                return this.strChineseName;
            }
            set
            {
                this.strChineseName = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "ContactPerson", "@ContactPerson", ClassPropertyAttribute.DBTypes.Varchar)]
        public string ContactPerson
        {
            get
            {
                return this.strContactPerson;
            }
            set
            {
                this.strContactPerson = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "ContactPerson2", "@ContactPerson2", ClassPropertyAttribute.DBTypes.Varchar)]
        public string ContactPerson2
        {
            get
            {
                return this.strContactPerson2;
            }
            set
            {
                this.strContactPerson2 = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "EmailAddress", "@EmailAddress", ClassPropertyAttribute.DBTypes.Varchar)]
        public string EmailAddress
        {
            get
            {
                return this.strEmailAddress;
            }
            set
            {
                this.strEmailAddress = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "EmailAddress2", "@EmailAddress2", ClassPropertyAttribute.DBTypes.Varchar)]
        public string EmailAddress2
        {
            get
            {
                return this.strEmailAddress2;
            }
            set
            {
                this.strEmailAddress2 = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Fax", "@Fax", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Fax
        {
            get
            {
                return this.strFax;
            }
            set
            {
                this.strFax = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Fax2", "@Fax2", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Fax2
        {
            get
            {
                return this.strFax2;
            }
            set
            {
                this.strFax2 = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "JobTitle", "@JobTitle", ClassPropertyAttribute.DBTypes.Varchar)]
        public string JobTitle
        {
            get
            {
                return this.strJobTitle;
            }
            set
            {
                this.strJobTitle = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "MobilePhone", "@MobilePhone", ClassPropertyAttribute.DBTypes.Varchar)]
        public string MobilePhone
        {
            get
            {
                return this.strMobilePhone;
            }
            set
            {
                this.strMobilePhone = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "MobilePhone2", "@MobilePhone2", ClassPropertyAttribute.DBTypes.Varchar)]
        public string MobilePhone2
        {
            get
            {
                return this.strMobilePhone2;
            }
            set
            {
                this.strMobilePhone2 = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Name", "@Name", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Name
        {
            get
            {
                return this.strName;
            }
            set
            {
                this.strName = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Phone", "@Phone", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Phone
        {
            get
            {
                return this.strPhone;
            }
            set
            {
                this.strPhone = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "Phone2", "@Phone2", ClassPropertyAttribute.DBTypes.Varchar)]
        public string Phone2
        {
            get
            {
                return this.strPhone2;
            }
            set
            {
                this.strPhone2 = value;
            }
        }

        [ClassProperty(false, false, true, true, true, "WebSite", "@WebSite", ClassPropertyAttribute.DBTypes.Varchar)]
        public string WebSite
        {
            get
            {
                return this.strWebSite;
            }
            set
            {
                this.strWebSite = value;
            }
        }
    }
}

